package com.codingfuture.glacierhardware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Host implements Serializable {
    private static final long serialVersionUID = 9L;
    //主机id
    @TableId(type = IdType.AUTO)
    private Long id;
    //编号
    private String sn;
    //名称
    private String name;
    //仓库外键
    private Integer warehouseId;
    //仓库名称
    private String warehouseName;
    //企业名称
    private String companyName;
    //状态 0：在用 / 1：停用
    private String state;
    //设备型号
    private String hostModel;
    //sim卡号
    private String sim;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
